import SvgIcon from "./SvgIcon/index.vue";
import type { App } from "vue";
import type { Components } from "./type";

// interface Components {
//   [key: string]: Component;
// }
const components: Components = { SvgIcon };

export default {
  install(app: App) {
    Object.keys(components).forEach((key: string) => {
      app.component(key, components[key]);
    });
  },
};
